/**
 * 
 */
package by.myteam.library;

import java.util.List;

import by.myteam.library.command.CommandsSingleton;
import by.myteam.library.command.ICommand;


/**
 * @author IstiN
 *
 */
public class Main {

	private static final String HEADER_FORMAT = "%1$s (%2$s)";

	private static final String APP_NAME = "Library";
	
	private static final String VERSION = "0.0.1";
	
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println(String.format(HEADER_FORMAT, APP_NAME, VERSION));
		
		System.out.println("Commands:");
		CommandsSingleton commands = CommandsSingleton.getInstance();
		List<ICommand> listCommand = commands.getCommands();
		for (ICommand command : listCommand) {
			System.out.println(command.name());	
			System.out.println("-"+command.info());	
		}
		System.out.println(commands.execute("add", "adsasdas"));
	}

}
